package com.dragon.modules.yuegou.model.product;

import com.dragon.modules.yuegou.entity.product.PackageEntity;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商品套餐信息表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-17 16:40:35
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Package extends PackageEntity {

	@ApiModelProperty("套餐内商品信息")
	private Spu packageSpu;

	@ApiModelProperty("套餐内商品名称")
	private String title;

	@ApiModelProperty("套餐内商品属性")
	private String attrs;

	@ApiModelProperty("套餐内商品数量")
	private Integer skuStock;

	@ApiModelProperty("套餐内商品信息")
	private Sku packageSku;

	public Sku getPackageSku() {
		return packageSku;
	}

	public void setPackageSku(Sku packageSku) {
		this.packageSku = packageSku;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getAttrs() {
		return attrs;
	}

	public void setAttrs(String attrs) {
		this.attrs = attrs;
	}

	public Integer getSkuStock() {
		return skuStock;
	}

	public void setSkuStock(Integer skuStock) {
		this.skuStock = skuStock;
	}

	public Spu getPackageSpu() {
		return packageSpu;
	}

	public void setPackageSpu(Spu packageSpu) {
		this.packageSpu = packageSpu;
	}
	/**
	 * 构造一个空商品套餐信息表模型对象
	 */
	public Package() {
		super();
	}

	/**
	 * 依据实体对象的信息构造一个商品套餐信息表模型对象
	 * 
	 * @param entity
	 *            实体对象
	 */
	public Package(PackageEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品套餐信息表模型对象
	 * 
	 * @param other
	 *            其它对象
	 */
	public Package(Package other) {
		super(other);
	}

	@Override
	public String getId() {
		return id;
	}

	/**
	 * 设置
	 * 
	 * @param id
	 * @return 当前对象
	 */
	public Package id(String id) {
		this.id = id;
		return this;
	}

	@Override
	public String getPackageSpuId() {
		return packageSpuId;
	}

	/**
	 * 设置套餐本身的spu_id
	 * 
	 * @param packageSpuId
	 *            套餐本身的spu_id
	 * @return 当前对象
	 */
	public Package packageSpuId(String packageSpuId) {
		this.packageSpuId = packageSpuId;
		return this;
	}

	@Override
	public String getPackageSkuId() {
		return packageSkuId;
	}

	/**
	 * 设置套餐本身的sku_id
	 * 
	 * @param packageSkuId
	 *            套餐本身的sku_id
	 * @return 当前对象
	 */
	public Package packageSkuId(String packageSkuId) {
		this.packageSkuId = packageSkuId;
		return this;
	}

	@Override
	public String getSpuId() {
		return spuId;
	}

	/**
	 * 设置
	 * 
	 * @param spuId
	 * @return 当前对象
	 */
	public Package spuId(String spuId) {
		this.spuId = spuId;
		return this;
	}

	@Override
	public String getSkuId() {
		return skuId;
	}

	/**
	 * 设置套餐内的sku_id
	 * 
	 * @param skuId
	 *            套餐内的sku_id
	 * @return 当前对象
	 */
	public Package skuId(String skuId) {
		this.skuId = skuId;
		return this;
	}

	@Override
	public Integer getSkuNum() {
		return skuNum;
	}

	/**
	 * 设置套餐内的sku数量
	 * 
	 * @param skuNum
	 *            套餐内的sku数量
	 * @return 当前对象
	 */
	public Package skuNum(Integer skuNum) {
		this.skuNum = skuNum;
		return this;
	}
}
